package com.woniuxy.dao;

import com.woniuxy.entity.ChoiceAnswer;
import com.woniuxy.entity.PaperAttribute;
import com.woniuxy.entity.Question;
import com.woniuxy.entity.QuestionAnswer;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;import java.util.List;

import java.util.List;

@Mapper
public interface QuestionDao {
    //增加一个选择题
    int insertChoiceQuestionOne(Question question);
    //增加选择题的选项内容
    int insertChoiceAnswer(List lists);

    //增加一个非选择题的题目
    int insertQuestionOne(Question question);

    /*查询题目的详细信息根据题目根据数组id*/
    List<Question> findPaperAttByid(List querList);

    //修改选择题选项内容信息
    int updateChoiceAnswer(List<ChoiceAnswer> lists);
    //修改题目信息
    int updateQuestionOne(Question question);

    /*查询选择题答案*/
    List<QuestionAnswer>  findSelectAnswerById(int id);
}
